package cn.yunhe.entity;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/5/22.
 */
public class Admin implements Serializable {
    private int admin_id;  ////
    private String name;
    private String number;
    private String pwd;
    private int state;
    private Role role;

    public Admin() {
        super();
    }

    public Admin(int admin_id, String name, String number, String pwd, int state, Role role) {
        this.admin_id = admin_id;
        this.name = name;
        this.number = number;
        this.pwd = pwd;
        this.state = state;
        this.role = role;
    }

    public int getAdmin_id() {
        return admin_id;
    }

    public void setAdmin_id(int admin_id) {
        this.admin_id = admin_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "admin_id=" + admin_id +
                ", name='" + name + '\'' +
                ", number='" + number + '\'' +
                ", pwd='" + pwd + '\'' +
                ", state=" + state +
                ", role=" + role +
                '}';
    }
}
